<% content_for(:head) do %>
  <%= javascript_tag( %Q(
    Event.observe(window, "load", function() {
      Guid.reg();
    });
  )) %>  
<% end %>

<div class="blog">
  <%= render :partial => "blog_entry", :collection => @blog_entries %>
  
  <% if @blog_entries.empty? %>
    <div class="empty">
      No entries found.
    </div>
  <% end %>
  
  <div class="more">
    <% if @blog_entries_pages %>
      <%= render(:partial => "layouts/pagination", :locals => { :total_pages => @blog_entries_pages[1] }) %>
    <% end %>
    <br style="clear:both;"/>
  </div>
</div>

